package com.burgeon.backend.SHOPBACKEND.service;

import com.burgeon.backend.SHOPBACKEND.entity.Banner;
import com.burgeon.backend.SHOPBACKEND.entity.IndexImg;
import com.burgeon.backend.SHOPBACKEND.entity.Seckill;
import com.burgeon.backend.SHOPBACKEND.service.ex.ErrorDataException;
import com.burgeon.backend.SHOPBACKEND.service.ex.UploadException;
import org.springframework.web.multipart.MultipartFile;

import java.text.ParseException;
import java.util.List;

public interface BackentIndexImgService {
    //首页轮播图
    void addIndexBanner(MultipartFile file, String account, String type, String message) throws UploadException;

    //删除首页轮播
    void deIndexBannerById(String id) throws ErrorDataException;

    //查看首页轮播
    List<Banner> findIndexBanner(String account);


    //新品上市图
    Integer upIndexNew(MultipartFile file, String account) throws UploadException;

    //活动专区图
    Integer upIndexActivity(MultipartFile file, String account) throws UploadException;

    //会员专享
    Integer upHyzx(MultipartFile file, String account) throws UploadException;

    //积分生活
    Integer upJfsh(MultipartFile file, String account) throws UploadException;

    //积分换购
    Integer upJfhg(MultipartFile file, String account) throws UploadException;

    //积分礼券
    Integer upJflq(MultipartFile file, String account) throws UploadException;

    //查看新品上市图
    IndexImg findIndexNew(String account);

    //查看活动专区图
    IndexImg findIndexActivity(String account);

    //查看积分商城
    IndexImg findIndexJf(String account);

    /**********************秒杀**********************/
    Integer addIndexSkill(MultipartFile file, String account) throws UploadException;


    //查看秒杀
    Seckill findIndexSeckill(String account);
}
